﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DailyDeliverInfo.aspx.cs" Inherits="Hisun.View.DailyDeliverInfo.DailyDeliverInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">

        .style2
        {
            width: 285px;
        }
        .style1
        {
            width: 169px;
        }
        .style3
        {
            width: 100%;
        }
        .style4
        {
            width: 477px;
        }
        .style5
        {
            height: 73px;
        }
        .style6
        {
            width: 285px;
            height: 73px;
        }
        .style7
        {
            width: 169px;
            height: 73px;
            font-weight: 700;
        }
        </style>
        <script type="text/javascript" src="../../Javascript/datepick.js"></script>
        
</head>
<body>
    <form id="form1" runat="server">
    
     <table style="width:100%;">
            <tr>
                <td colspan="4"> 
                    <asp:Panel ID="Panel_CenterIdAndPIPid" runat="server"><asp:Label ID="Label7" runat="server" Text="作业中心："></asp:Label>
                    <asp:DropDownList ID="DropDownList_CostCenterId" runat="server" Height="26px" 
                        Width="180px" AutoPostBack="True">
                    </asp:DropDownList><asp:Label ID="Label8" runat="server" Text="作业中心产品："></asp:Label>
                    <asp:DropDownList ID="DropDownList_PIPId" runat="server" 
                        DataSourceID="LinqDataSource1" DataTextField="中间体名称" DataValueField="中间体ID" 
                        Height="19px" Width="180px">
                    </asp:DropDownList>
                        时间：<asp:TextBox ID="tb_date" runat="server"  onclick="setday(this)"></asp:TextBox>
                        <asp:Button SkinID = "Button" ID="Button_Query" runat="server" onclick="Button_Query_Click" 
                            Text="查询" />
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                                        说明：每日生产信息记录<br />
                </td>
                <td>
                                        &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="4" valign="top">
                    <asp:Panel ID="Panel_GridView" runat="server">
                        <table class="style3" >
                            <tr valign="top">
                                <td class="style4" >
                                    每日数据：</td>
                                <td >
                                    汇总信息：</td>
                            </tr>
                            <tr valign="top">
                                <td class="style4">
                                    <asp:GridView ID="GridView_PIPDetail" runat="server" 
                                        AutoGenerateColumns="False" SkinID="GridView">
                                        <Columns>
                                            <asp:BoundField DataField="时间" DataFormatString="{0:yyyy-M-d}" HeaderText="时间" 
                                                SortExpression="时间" />
                                            <asp:BoundField DataField="转出数量" DataFormatString="{0:N2}" HeaderText="转出数量" />
                                            <asp:BoundField DataField="转出批数" DataFormatString="{0:N2}" HeaderText="转出批数" 
                                                SortExpression="转出数量" />
                                            <asp:BoundField DataField="转出批时" DataFormatString="{0:N2}" HeaderText="转出批时" 
                                                SortExpression="转出批时" />
                                            <asp:BoundField DataField="批号" HeaderText="批号" SortExpression="批号" />
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <asp:Button SkinID = "Button" ID="Button_Edit" runat="server" CommandArgument='<%# Eval("ID") %>' 
                                                        oncommand="Button_Edit_Command" Text="编辑" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                </td>
                                <td  >
                                    <asp:GridView ID="GridView_Sum" runat="server" AutoGenerateColumns="False" 
                                        SkinID="GridView">
                                        <Columns>
                                            <asp:BoundField DataField="会计期间ID" HeaderText="会计期间ID" SortExpression="时间" />
                                            <asp:BoundField DataField="转出数量" DataFormatString="{0:N2}" HeaderText="转出数量" />
                                            <asp:BoundField DataField="转出批数" DataFormatString="{0:N2}" HeaderText="转出批数" 
                                                SortExpression="转出数量" />
                                            <asp:BoundField DataField="转出批时" DataFormatString="{0:N2}" HeaderText="转出批时" 
                                                SortExpression="转出批时" />
                                            <asp:BoundField DataField="待返工批数" DataFormatString="{0:N2}" HeaderText="返工批数" 
                                                SortExpression="待返工批数" Visible="False" />
                                            <asp:BoundField DataField="待返工批时" DataFormatString="{0:N2}" HeaderText="返工批时" 
                                                SortExpression="待返工批时" Visible="False" />
                                        </Columns>
                                    </asp:GridView>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <table style="width:100%;">
                        <tr>
                            <td>
                                <asp:Panel ID="Panel_EditPanel" runat="server" Visible="False">
                                    <table style="width:100%;">
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label3" runat="server" Text="日期："></asp:Label>
                                            </td>
                                            <td class="style2">
                                                <asp:TextBox ID="TextBox_Datetime" runat="server" ></asp:TextBox>
                                            </td>
                                            <td class="style1">
                                                <asp:Label ID="Label6" runat="server" Text="转出数量："  ></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="TextBox_转出数量" runat="server"></asp:TextBox>
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label4" runat="server" Text="转出批数："></asp:Label>
                                            </td>
                                            <td class="style2">
                                                <asp:TextBox ID="TextBox_转出批数" runat="server"></asp:TextBox>
                                            </td>
                                            <td class="style1">
                                                <asp:Label ID="Label10" runat="server" Text="转出批时："></asp:Label>
                                                </td>
                                            <td>
                                                <asp:TextBox ID="TextBox_转出批时" runat="server" ></asp:TextBox>
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td class="style5">
                                                <asp:Label ID="Label12" runat="server" Text="批号："></asp:Label>
                                            </td>
                                            <td class="style6">
                                                <asp:TextBox ID="tb_批号" runat="server" Height="115px" TextMode="MultiLine" 
                                                    Width="212px"></asp:TextBox>
                                                <br />
                                                输入当天生产的批号，用逗号隔开</td>
                                            <td class="style7">
                                                &nbsp;</td>
                                            <td class="style5">
                                                </td>
                                            <td class="style5">
                                                </td>
                                            <td class="style5">
                                                </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;</td>
                                            <td class="style2">
                                                &nbsp;</td>
                                            <td class="style1">
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                    </table>
                                                                    <asp:Button SkinID = "Button" ID="Button_Save" runat="server" Text="保存" 
                                    oncommand="Button_Save_Command" ValidationGroup="Group" />
                                <asp:Button SkinID = "Button" ID="Button_Cancel" runat="server" oncommand="Button_Cancel_Command" 
                                    Text="取消" style="height: 26px" />
                                </asp:Panel>
                            </td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="3">

                                <asp:HiddenField ID="EditFlag" runat="server" 
                        Value="0"/>
                                <asp:HiddenField ID="EditPIPId" runat="server" 
                        Value="0"/>
                    <asp:HiddenField ID="CenterAndPIPInfo" runat="server" 
                        Value="0"/>
                    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                        ContextTypeName="Hisun.Models.HisunDBDataContext" Select="new (中间体ID, 中间体名称)" 
                        TableName="TABC_JS_ProductInProcess" Where="作业中心ID == @作业中心ID &amp;&amp; 可用 == @可用">
                        <WhereParameters>
                            <asp:ControlParameter ControlID="DropDownList_CostCenterId" Name="作业中心ID" 
                                PropertyName="SelectedValue" Type="Int32" />
                            <asp:Parameter DefaultValue="True" Name="可用" Type="Boolean" />
                        </WhereParameters>
                    </asp:LinqDataSource>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
<%=alter %>